//
//  AppState.swift
//  TanTan
//
//  Created by 于航 on 2024/9/15.
//

import Foundation

enum TabItem: String {
    case home = "rectangle.fill.on.rectangle.fill"
    case live = "play.tv.fill"
    case chat = "message.fill"
    case person = "person.fill"
}

struct TabBarItem : Hashable {
    let icon : String
    let title : String
}

class AppState : ObservableObject {
    @Published var selectTab: TabItem
    @Published var isFullScreen: Bool
    @Published var isPremium: Bool
    
    
    init(selectTab: TabItem = .home, isFullScreen: Bool = false, isPremium: Bool = false) {
        self.selectTab = selectTab
        self.isFullScreen = isFullScreen
        self.isPremium = isPremium
    }
}
